package com.chaofan.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.PastOrPresent;
import java.util.Date;

/**
 * @author 李超凡
 * @since 2022/1/14 16:54
 */
@Data
@TableName("t_user_info")
public class UserInfo {

    @TableId
    private Long id;

    @NotNull
    private Long userId;

    private String nick;

    private String avatar;

    private String sign;

    private String gender;

    private String birth;

    @PastOrPresent
    private Date createTime;

    @PastOrPresent
    private Date updateTime;
}
